echo "Are you sure to deploy to $1 (y/n)? "
read answer
if [ "$answer" != "${answer#[Yy]}" ]; then
    if [ "$1" == "prod" ]; then
        echo "ready to deploy to prod? (y/n)? "
        read double_check
        if [ "$double_check" != "${double_check#[Yy]}" ]; then
            fab -f fabfile_aws.py -R maestro --set stage=aws deploy
        fi
    else
        fab -f fabfile_aws.py -R maestro --set stage=test deploy
    fi
fi

